<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

return [
    // nacos server url like https://nacos.hyperf.io, Priority is higher than host:port
    // The nacos host info
    'host' => env('NACOS_LOCALHOST_IP'),
    'port' => env('NACOS_LOCALHOST_PORT'),
    // The nacos account info
//    'username' => 'nacos',
//    'password' => 'nacos',
    'guzzle' => [
        'config' => null,
    ],
    'config_reload_interval' => 3,
    // 远程配置合并节点, 默认 config 根节点
    'config_append_node' => 'nacos_config',
    'listener_config' => [
        // 配置项 dataId, group, tenant, type, content
        [
            'data_id' => 'hyperf-service-config',
            'group' => 'DEFAULT_GROUP',
        ]
    ],
    'service' => [
        'service_name'=> 'test-hyperf',
        'group_name'=> 'DEFAULT_GROUP',
        'namespace_id' => 'public',
        'enable' =>true,
        'protect_threshold' => 0,
        'namespaceId' => 'public',
        'metadata' => null,
        'selector' => null,
        'instance' => [
            'ephemeral' => true,
            'cluster' => '',
            'weight' => '',
            'metadata' => '',
            'heartbeat' => 5
        ],
    ],
];
